<script>
	import { mapMutations } from 'vuex';
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
			...mapMutations(['setCurThemeType']),
			handleSetTabBar() {
				const theme = uni.getStorageSync('theme');
				this.setCurThemeType(theme);
				if (theme === 'dark') {
					uni.setTabBarStyle({
						color: '#9299A7',
						selectedColor: '#3C79FF',
						backgroundColor: '#2B3757'
					});
				} else {
					uni.setTabBarStyle({
						color: '#9299A7',
						selectedColor: '#3C79FF',
						backgroundColor: '#fff'
					});
				}
			}
		}
	}
</script>

<style>
	/*每个页面公共css */
	view, text {
		box-sizing: border-box;
	}
	/* 隐藏整个应用程序的滚动条 */
	::-webkit-scrollbar {
	    display: none; /* Chrome、Safari等WebKit内核的浏览器支持此属性 */
	}
	
	/* 隐藏水平滚动条 */
	::v-deep .scrollbar {
	    overflow-x: hidden; /* 隐藏水平滚动条 */
	}
	 
	/* 隐藏垂直滚动条 */
	::v-deep .scrollbar {
	    overflow-y: hidden; /* 隐藏垂直滚动条 */
	}
</style>